var indexApp = angular.module('indexApp',[]);
indexApp.controller('indexController', function($scope, $http){
	$scope.signup = function(){
		var info = {
			email:$scope.email,
			password:$scope.password
		}
		$http.post('/sign/signup', info).success(function(data){
			console.log('ok');
		});
/*		$http({
			method:'post',
			url:'/conn/signup',
			data:info
		}).success(function(data){
			console.log('data:'+ data);
		});*/
	}

	$scope.signin = function(){
		$http.get('/sign/signin').success(function(data){
			console.log(data);
		});
	}
});